import { AutoIncrementId, Code, CreateDate, Money, PrimaryUuid, Uuid } from "../utils";
import { Entity } from "typeorm";


@Entity({ name: 'fuli_activity_log' })
export class FuliActivityLog {
    @PrimaryUuid()
    id: string;

    @AutoIncrementId()
    log_id: number;

    @Uuid({ comment: '企业会员ID' })
    company_member_id: string;

    @Uuid({ comment: '活动ID', nullable: true })
    activity_id: string;

    @Uuid({ comment: '企业ID', nullable: true })
    company_id: string;

    @Money({ default: 0, comment: '福利点' })
    money: number;

    @Money({ default: 0, comment: '可用福利点' })
    current_money: number;

    @Code({ default: '1', comment: '0驳回,1审核中,2审核成功' })
    status: string;

    @CreateDate()
    create_date: Date;
}